﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
using System.Data;
using DTO;
namespace BUS
{
    public class ChangBayBUS
    {
        ChangBayDAO dao = new ChangBayDAO();
        public DataTable layThongTinChangBay()
        {
            return dao.layThongTinChangBay();
        }
        public int capNhatChangBay(ChangBayDTO cb)
        {
            return dao.capNhatChangBay(cb);
        }
        public bool kiemTraChangBay(string maSanBayDi, string maSanBayDen)
        {
            return dao.kiemTraChangBay(maSanBayDi,maSanBayDen);
        }
        public int themChangBay(ChangBayDTO cb)
        {
            return dao.themChangBay(cb);
        }
        public int capNhatChangBay(string maChangBay)
        {
            return dao.capNhatChangBay(maChangBay);
        }
        public DataTable layThongTinChangBay(string maSanBayDi, string maSanBayDen)
        {
            return dao.layThongTinChangBay(maSanBayDi, maSanBayDen);
        }
        public DataTable layThongTinSanBayDiDen_ChangBay()
        {
            return dao.layThongTinSanBayDiDen_ChangBay();
        }
    }
}
